const RoletService = require('../service/RoletService')
module.exports = {
    async getList(req, res, next) {
        var result = await RoletService.getList()
        res.send(result)
    },
    async updataList(req, res, next) {
        // console.log(req.body)
        // console.log(req.query)
        // console.log(req.params)
        var result = await RoletService.updataList(req.params.id,req.body)
        res.send(result)
    }
    ,
    async deleteList(req, res, next) {
        var result = await RoletService.deleteList(req.params.id)
        res.send(result)
    }
}